<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺退款申请列表页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function del(id){
	var ids=new Array(1);
	ids[0]=id;
	$.post("${base}/orderReturn/delete.jspx?pageNo=${pageNo!}",{returnId:ids},function(data){location.reload();});
}

function optDelete(){
	if(Pn.checkedCount('orderId')<=0){
		alert("请选择要删除的数据");
		return;
	}
	if(!confirm("确认删除")){
		return;
	}
	var f=document.getElementById('tableForm');
	f.action="${base}/orderReturn/delete.jspx";
	f.submit();
}

function chgStatus(){
	var status =$("input[name=status]:checked").val();
	location.href="${base}/orderSt/returnList.jspx?status="+status;
}
</script>
</head>
<body>
[#include "../include/shop_top.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
        <div class="user_title2">店铺退款申请管理</div>  
		<div class="clear10"></div> 
        <div style="margin:0px auto 10px auto;">
        <form action="v_list.do">
        <label><input type="radio" name="status" value="" onclick="chgStatus();" [#if !(status??)]checked="checked"[/#if]/>所有</label>
        <label><input type="radio" name="status" value="1" onclick="chgStatus();" [#if status??&&status=1]checked="checked"[/#if]/>待审</label>
        <label><input type="radio" name="status" value="2" onclick="chgStatus();" [#if status??&&status=2]checked="checked"[/#if]/>已审</label>
        <label><input type="radio" name="status" value="3" onclick="chgStatus();" [#if status??&&status=3]checked="checked"[/#if]/>退回</label>
        <label><input type="radio" name="status" value="4" onclick="chgStatus();" [#if status??&&status=4]checked="checked"[/#if]/>待收货</label>
        <label><input type="radio" name="status" value="5" onclick="chgStatus();" [#if status??&&status=5]checked="checked"[/#if]/>已收货</label>
        <label><input type="radio" name="status" value="6" onclick="chgStatus();" [#if status??&&status=6]checked="checked"[/#if]/>已退款</label>
        <label><input type="radio" name="status" value="7" onclick="chgStatus();" [#if status??&&status=7]checked="checked"[/#if]/>已完成</label>
        </form>
        </div>
        
        <form method="post" id="tableForm">
        <div class="listtool list_head">
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc" style="font-size:12px;">
        <tr>
        <td height="30" width="35" align="center" bgcolor="#f0f0f0">序号</td>
        <td align="center" bgcolor="#f0f0f0">退款编号</td>
        <td align="center" bgcolor="#f0f0f0">订单编号</td>
        <td align="center" width="100" bgcolor="#f0f0f0">会员名</td>
        <td align="center" width="100" bgcolor="#f0f0f0">交易金额</td>
        <td align="center" width="100" bgcolor="#f0f0f0">退款金额</td>
        <td align="center" width="100" bgcolor="#f0f0f0">申请时间</td>
        <td align="center" width="100" bgcolor="#f0f0f0">处理时间</td>
        <td align="center" width="100" bgcolor="#f0f0f0">处理状态</td>
        <td align="center" width="100" bgcolor="#f0f0f0">操作</td>
        </tr>
        </table>
        </div>
        [@orderReturn_page storeId=store.id status=status memberId=member.id count='5' pageNo=pageNo]
        <table  cellspacing="1" cellpadding="0" width="100%" border="0">
        [#if tag_list?size gt 0]
        [#list tag_list as o]
        <tr>
        <td width="35" height="50" align="center"><input type="checkbox" name="orderId" value="${o.returnOrder.id!}"/></td>
        <td  align="center">${o.returnOrder.code!}</td>
        <td align="center"><a class="aBlu" href="${base}/orderSt/view.jspx?orderId=${o.id}" target="_blank">${o.code!}</a></td>
        <td width="100" align="center">${o.member.username!}</td>
        <td width="100" align="center">${o.total!0.0}</td>
        <td width="100" align="center">${o.returnOrder.money!0.0}</td>
        <td width="100" align="center">${o.returnOrder.createTime?string('yyyy-MM-dd HH:mm:ss')!}</td>
        <td width="100" align="center">[#if o.returnOrder.finishedTime??]${o.returnOrder.finishedTime?string('yyyy-MM-dd HH:mm:ss')!}[/#if]</td>
        <td width="100" align="center">[@s.m "orderReturn.status.${o.returnOrder.status}"/]</td>
        <td width="100" align="center">
        <a href="${base}/orderSt/returnListView.jspx?returnId=${o.id}&pageNo=${pageNo!}">查看</a>|
        <!-- <a href="javascript:if(confirm('确认删除?')) del(${o.returnOrder.id!})">删除</a> -->
        </td>
        [/#list]
        </tr>
        [#else]
        <div class="zwsj">暂无退货记录</div>
        [/#if]
        </table>
        <div class="pageNumber">[@pagination_style sysPage='3'/]</div>
        <!-- <input type="button" value="批量删除" onclick="optDelete();" class="menu_ok2"/> -->
        [/@orderReturn_page]
        </form>
	</div>
	<div class="clear20"></div>
</div>
[#include "../include/footer_information_bar.html"/]
</body>
</html>